/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package javaapplication6.DomainLayer;

/**
 *
 * @author meydlo
 */
import java.util.ArrayList;
import java.util.HashMap;
public class OrderSellRecords{

    private static OrderSellRecords orderSellRecords;

    
    private HashMap<Long,ArrayList<OrderSellProduct>> orderSellHashMap;

    //
    private OrderSellRecords(){
        orderSellHashMap=new HashMap<Long, ArrayList<OrderSellProduct>>();
    }

    //
    public static OrderSellRecords getOrderSellRecords(){
        if(orderSellRecords==null)
        {
            orderSellRecords=new OrderSellRecords();
        }
        return orderSellRecords;
    }

    public HashMap<Long, ArrayList<OrderSellProduct>> getOrderSellHashMap() {
        return orderSellHashMap;
    }

    //statistics purpose
    public int noOfSellOrders()
    {
        int no = orderSellHashMap.size();
        return no;
    }

}

